package com.bingo.rbac.util;

import org.apache.commons.lang3.StringUtils;

/**
 * level
 *
 * @author bingo
 * @create 2017-12-03 19:18
 **/
public class LevelUtil {

    public static  String  SEPARATOR=".";

    public static  String ROOT="0";

    public static String  getLevel(String parentLevel,Integer parentId){
    if(parentId==0){
        return ROOT;
    }
        return StringUtils.join(parentLevel,SEPARATOR,parentId);

    }
}
